package com.supermarket.api.service;

import com.supermarket.api.bean.IdReq;
import com.supermarket.api.bean.cart.CartRes;
import com.supermarket.api.bean.cart.CreateCartReq;
import com.supermarket.api.bean.cart.UpdateNumberCartReq;

import java.util.List;

/**
 * 购物车服务层
 * @author 李其伟
 * @date 2023/11/10
 */
public interface CartService {

    void create(CreateCartReq req);

    void updateNumber(UpdateNumberCartReq req);

    void delete(IdReq req);

    void clear();

    List<CartRes> list();
}
